<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
?><link rel="stylesheet" type="text/css" href="/static/css/upload.css">
<form id="ff" method="post" style="margin:10px 0px 0px 10px;display:block;">
	<table style="font-size:12px;" cellspacing="5">
		<tr>
			<td>发布者UID</td>
			<td><input type="text" class="easyui-validatebox" name="user_id"></td>
		</tr>
		<tr>
			<td>接收方UID</td>
			<td><input type="text" class="easyui-validatebox" name="to_uid"></td>
		</tr>
		<tr>
			<td>接收方姓名</td>
			<td><input type="text" class="easyui-validatebox" name="to_name"></td>
		</tr>
		<tr>
			<td>币种</td>
			<td>
				<select name="coin_id">
					
<?php
foreach ($coins as $v) {
?>					<option value="<?php echo $v['id'];?>"><?php echo $v['cn_name'];?></option>
					<?php
}

?>				</select>
			</td>
		</tr>
		<tr>
			<td>转币数量</td>
			<td><input type="text" class="easyui-validatebox" name="amount" required="true"></td>
		</tr>
		<tr>
			<td>总金额</td>
			<td><input type="text" class="easyui-validatebox" name="total" required="true"></td>
		</tr>
				
		<tr>
			<td></td>
			<td>
			<button type="submit" class="easyui-linkbutton" iconCls="icon-ok">提交</button>
			</td>
		</tr>
	</table>
</form>

<script language="javascript">
$(function(){
	$('#ff').form({
		url:'<?php echo site_url('push/insert');?>',
		onSubmit:function(){
			return $(this).form('validate');
		},
		success:function(data){
			data = eval('('+data+')');
			$.messager.alert('信息提示',data.msg,'info');
			if(data.error == 0){
				$('#win').window('close');
				$('#tt').datagrid('reload');
			}
		}
	});
});
</script>